<%--
  Created by IntelliJ IDEA.
  User: Shisanyang
  Date: 2020/3/29
  Time: 16:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% pageContext.setAttribute("contextPath", request.getContextPath());%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>登录页面</title>
</head>
<body>
<!-- 国际化的区域信息是决定国际化显示的因素 -->
<fmt:message key="welcomeinfo"/>
</h1>
<form action="">
    <fmt:message key="username"/>:<input /><br/>
    <fmt:message key="password"/>:<input /><br/>
    <input type="submit" value="<fmt:message key="loginBtn"/>"/>
</form>
<!-- 如果点击超链接切换国际化 -->
<a href="${contextPath}/${method}?locale=zh_CN"><fmt:message key="chinese"/></a>|<a href="${contextPath}/${method}?locale=en_US"><fmt:message key="english"/></a>
</body>
</html>
